package com.proj.dao;

import com.proj.bean.User;
import com.proj.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ManagerDao {

    List<User> commonUsers(@Param("page")Page page, @Param("text")String text);

    int commoncount(@Param("text")String text);

    List<User> getAllUsers(@Param("id") int id,@Param("page")Page page, @Param("text")String text);

    int getAllCount(@Param("text")String text);

    int powerexchange(@Param("id") int id);

    int editUser(@Param("user") User user);

    int chongzhi(@Param("userid")int userid);

}
